GenerativeComponents Help

The Empty Statement

As its name suggests, an empty statement contains no body, and does nothing.

A common use of an empty statement is to serve as the nested statement within a repetitive statement (while, for, etc.), when there is actually no need of a nested statement.

Example

/*
	Pause for five seconds.
	Now() is a GCScript library function that returns
a datetime value
	representing the current moment in real-world time.
(It returns a
	different value every time you call it.)
	*/
	datetime goalTime = Now() + timespan(0, 0, 0, 5);
	while (goalTime > Now())
	    ;  // Empty statement.